import request from './request.js'

// 积分充值列表rechargeList
export const rechargeList=(params)=>{
	return request({
		url: "/web/wechat/rechargeList",
		method: "post",
		data: params,
	})
}

export const wxLogin=(params)=>{
	return request({
		url: "/user/wxLogin",
		method: "post",
		data: params,
	})
}
/* 获取手机号并登录 */
export const getWxPhone=(params)=>{
	return request({
		url:'/user/getWxPhone',
		method:"POST",
		data:params
	})
}
/* 获取轮播图 */
export const homeCarouselList=(params)=>{
	return request({
		url:'/web/home/CarouselList',
		method:"POST",
		data:params
	})
}
/* 供应商列表 */
export const userTopList=(params)=>{
	return request({
		url:'/web/home/userTopList',
		method:"POST",
		data:params
	})
}
//个人中心供应列表
export const mySupplyList=(params)=>{
	return request({
		url:'/web/center/mySupplyList',
		method:"POST",
		data:params
	})
}
/* 最新公告通知 */
export const noticeNew=(params)=>{
	return request({
		url:'/web/home/noticeNew',
		method:"POST",
		data:params
	})
}
/* 公告列表 */
export const noticeList=(params)=>{
	return request({
		url:'/web/home/noticeList',
		method:"POST",
		data:params
	})
}
/* 支付 */
export const weChatPay=(params)=>{
	return request({
		url:'/web/wechat/weChatPay',
		method:"POST",
		data:params
	})
}
//省市区联动
export const cityList=(params)=>{
	return request({
		url:'/web/common/cityList',
		method:"POST",
		data:params
	})
}
//类型列表
export const typeList=(params)=>{
	return request({
		url:'/web/index/typeList',
		method:"POST",
		data:params
	})
}
//规格列表
export const specsList=(params)=>{
	return request({
		url:'/web/index/specsList',
		method:"POST",
		data:params
	})
}
//视频教学
export const teachingVideo=(params)=>{
	return request({
		url:'/web/center/teachingVideo',
		method:"POST",
		data:params
	})
}
//供应详情
export const supplySubDetails=(params)=>{
	return request({
		url:'/web/index/supplySubDetails',
		method:"POST",
		data:params
	})
}
//供应删除
export const supplySubDel=(params)=>{
	return request({
		url:'/web/index/supplySubDel',
		method:"POST",
		data:params
	})
}
//供应上传
export const supplySub=(params)=>{
	return request({
		url:'/web/index/supplySub',
		method:"POST",
		data:params
	})
}
//求购上传
export const myBuySub=(params)=>{
	return request({
		url:'/web/want/myBuySub',
		method:"POST",
		data:params
	})
}
// 求购详情
export const myBuySubDetails=(params)=>{
	return request({
		url:'/web/want/myBuySubDetails',
		method:"POST",
		data:params
	})
}
// 求购删除
export const wantSubDel=(params)=>{
	return request({
		url:'/web/want/supplySubDel',
		method:"POST",
		data:params
	})
}
//求购列表
export const wantBuyList=(params)=>{
	return request({
		url:'/web/want/wantBuyList',
		method:"POST",
		data:params
	})
}
//供应列表
export const supplyList=(params)=>{
	return request({
		url:'/web/index/supplyList',
		method:"POST",
		data:params
	})
}
//我的报价
export const myQuote=(params)=>{
	return request({
		url:'/web/want/myQuote',
		method:"POST",
		data:params
	})
}
//我的求购列表
export const myWantBuyList=(params)=>{
	return request({
		url:'/web/center/myWantBuyList',
		method:"POST",
		data:params
	})
}
//我的报价界面列表
export const myOfferList=(params)=>{
	return request({
		url:'/web/center/myOfferList',
		method:"POST",
		data:params
	})
}
//我的报价列表
export const myOfferMyOfferList=(params)=>{
	return request({
		url:'/web/center/myOfferMyOfferList',
		method:"POST",
		data:params
	})
}
//商家报价列表
export const businessQuotelist=(params)=>{
	return request({
		url:'/web/center/businessQuotelist',
		method:"POST",
		data:params
	})
}
//商家报价详情
export const businessQuoteDetails=(params)=>{
	return request({
		url:'/web/center/businessQuoteDetails',
		method:"POST",
		data:params
	})
}
//积分列表
export const myIntegralList=(params)=>{
	return request({
		url:'/web/center/myIntegralList',
		method:"POST",
		data:params
	})
}
//会员列表
export const myMember=(params)=>{
	return request({
		url:'/web/center/myMember',
		method:"POST",
		data:params
	})
}
export const systemConfig=(params)=>{
	return request({
		url:'/web/center/systemConfig',
		method:"POST",
		data:params
	})
}
//获取用户信息
export const getUser=(params)=>{
	return request({
		url:'/user/getUser',
		method:"POST",
		data:params
	})
}
//苗圃认证
export const companyAuth=(params)=>{
	return request({
		url:'/web/common/companyAuth',
		method:"POST",
		data:params
	})
}
//获取电话号码
export const getPhone=(params)=>{
	return request({
		url:'/web/index/getPhone',
		method:"POST",
		data:params
	})
}
//获取浏览次数
export const supplyBrowse=(params)=>{
	return request({
		url:'/web/index/supplyBrowse',
		method:"POST",
		data:params
	})
}
//实名认证
export const userAuth=(params)=>{
	return request({
		url:'/web/common/userAuth',
		method:"POST",
		data:params
	})
}
//修改用户
export const profile=(params)=>{
	return request({
		url:'/user/profile',
		method:"POST",
		data:params
	})
}
//市级数据
export const cityList2=(params)=>{
	return request({
		url:'/web/common/cityList2',
		method:"POST",
		data:params
	})
}
//获取认证信息的
export const myCompanyAuth=(params)=>{
	return request({
		url:'/web/center/myCompanyAuth',
		method:"POST",
		data:params
	})
}
//刷新
export const refreshSupply=(params)=>{
	return request({
		url:'/web/index/refreshSupply',
		method:"POST",
		data:params
	})
}
//绑定公众号
export const bindWechat=(params)=>{
	return request({
		url:'/user/bindWechat',
		method:"POST",
		data:params
	})
}
